<?php
class staticpages_delete extends SClass {

    public function process() {
    	try {
    		ServiceUtils::GetFactory()->getStaticpageService()->deleteStaticpage(
    			$this->getArgument('url')
    		);
    		$this->assign('message', 'ok');
    	} catch (ServiceUtils_Exception $exception) {
    		$this->assign('message', 'error');
    	}
    }

}